
#include "iostream"
#include "vector"
#include "unordered_map"
#include "algorithm"
#include "string"
#include "list"
class Solution{
public:
};


int main() {
    std::list<int> list1;
    int c=0;int b=0;
    while(1){
        char a=getchar();
        if(a==EOF){
            break;
        }else if(a=='E'){
            printf("%d:%d\n",c,b);
            c=b=0;
        }else{
            if(a=='W'){
                c++;
            }else if(a=='L'){
                b++;
            }
        }
    }
    return 0;
}

